package com.mbcn.system.services;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class Navigation extends ActionSupport {
	HttpServletRequest request = ServletActionContext.getRequest();
	String paramResp;

	public String getParamResp() {
		return paramResp;
	}

	public void setParamResp(String paramResp) {
		this.paramResp = paramResp;
	}

	public String navigationLogin() {
		String isPopup = request.getParameter("isPopup");
		if (isPopup == null) {
			return ERROR;
		} else {
			return SUCCESS;
		}

	}
	
	public String navigationItemDetails() {
		String isPopup = request.getParameter("isPopup");
		paramResp = request.getParameter("itemId");
		if (isPopup == null) {
			return ERROR;
		} else {
			return SUCCESS;
		}

	}
}